<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/14
 * Time: 16:11
 */

namespace app\controllers;

use yii;
use app\models\Staff;


class StaffController extends ApiBaseController
{
    public function actionList()
    {
        $where = [];
        $where['status'] = yii::$app->request->get('status', 0);
        $model = new Staff();
        $staff_list = $model->get_staff_list($where);
        return \json_encode(['list' => $staff_list]);
    }

}